<?php $this->load->view('common/default_header.php');?>
<?php $this->load->view('common/invite_nav.php');?>
<section class="trade">
    <ul class="trade-head">
        <li class="br text-center">
            <h4>推荐总数</h4>
            <h2><?php echo $invite_num;?></h2>
        </li>
        <li class="text-center">
            <h4><?php echo $type=="yk"?"盈亏总额":"交易总额";?></h4>
            <h2><?php echo $deal[$type];?></h2>
        </li>
        <div class="clear"></div>
    </ul>
    <div class="table-responsive">
        <table class="table table-striped">
            <tr>
                <th>注册日期</th>
                <th>微信昵称</th>
                <th><?php echo $type=="yk"?"盈亏总额":"交易总额";?></th>
            </tr>
            <?php 
                if(!empty($details)){
                foreach($details as $items){
            ?>
                <tr>
                    <td><?php echo date("m-d",strtotime($items['create_time']));?></td>
                    <td><?php echo $items['nickname'];?></td>
                    <td><?php echo $items[$type];?></td>
                </tr>
            <?php }?>
            <?php }else{?>
                <tr>
                    <td colspan="5">暂无记录</td>
                </tr>
            <?php }?>
        </table>
    </div>
</section>

<?php $this->load->view('common/wx_share.php');?>